﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace TBWebServer
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            GetTemp();

        }

        private string GetTemp()
        {
            XmlDocument doc = new XmlDocument();
            doc.Load("http://w1.weather.gov/xml/current_obs/KNYC.xml");
            XmlNode node = doc.SelectSingleNode("//current_observation/temp_f");
            return node.InnerText;
        }

        private void Bt_Start_Click(object sender, EventArgs e)
        {

        }
    }
}
